/**
 * Created by fly on 2017/1/16.
 */
BUI.use('common/main', function () {
    var config = [{
        id: 'project',
        homePage: 'projectinfo',
        menu: [{
            text: '项目管理',
            items: [{
                id: 'projectinfo',
                text: '项目基本信息',
                href: 'ProjectInfo/list.html'
            }, {
                id: 'proexecute',
                text: '项目执行状态',
                href: 'ProjectExecute/list.html'
            }, {
                id: 'timedetail',
                text: '项目工时明细',
                href: 'TaskTimeDetail/list.html'
            }, {
                id: 'timestats',
                text: '项目工时统计',
                href: 'ProjectTaskTimeStats/list.html'
            }, {
                id: 'staffstats',
                text: '人员工时统计',
                href: 'Staff/list.html'
            }, {
                id: 'fileimport',
                text: '工时明细导入',
                href: 'Public/fileImport.html'
            }]
        }]
    }, {
        id: 'finance',
        homePage: 'paymentStats',
        menu: [{
            text: '财务数据',
            items: [{
                id: 'paymentStats',
                text: '项目收支统计',
                href: 'payment/list.html'
            }, {
                id: 'incomeStats',
                text: '项目收款统计',
                href: 'incomeState/list.html'
            }, {
                id: 'incomeDetail',
                text: '项目收款明细',
                href: 'incomeDetail/list.html'
            }, {
                id: 'expandStats',
                text: '项目费用统计',
                href: 'expandStats/list.html'
            }, {
                id: 'expandDetail',
                text: '项目费用明细',
                href: 'expandDetail/list.html'
            }]
        }]
    }, {
        id: 'system',
        homePage: 'department',
        menu: [{
            text: '系统管理',
            items: [{
                id: 'department',
                text: '部门管理',
                href: 'Node/list.html'
            }, {
                id: 'role',
                text: '角色管理',
                href: 'Role/list.html'
            }, {
                id: 'user',
                text: '用户管理',
                href: 'User/list.html'
            }, {
                id: 'menuconfig',
                text: '菜单管理',
                href: 'Menu/list.html'
            }, {
                id: 'authorconfig',
                text: '权限管理',
                href: 'Author/list.html'
            }, {
                id: 'paramconfig',
                text: '参数管理',
                href: 'Param/list.html'
            }]
        }]
    }];
    new PageUtil.MainPage({
        modulesConfig: config
    });
});
